package statter;

public class Stat {
	private long start;
	private long end = -1;
	
	public Stat() {
		start = System.currentTimeMillis();
	}
	
	public long end() {
		end = System.currentTimeMillis();
		return end;
	}
	
	public long getStart() {
		return start;
	}
	
	public long getEnd() {
		return end;
	}
	
	public long getTime() {
		if (end != -1) {
			return end - start;
		}
		return end;
	}
	
	public void print() {
		System.out.println("-------------------------");
		System.out.println("Start: " + start);
		System.out.println("End: " + end);
		System.out.println("Time: " + getTime());
	}
}
